GGI_BIN=cgi.exe
CGI_CC=cgi/test_cgi.cc

.PHONY:ALL
ALL:$(GGI_BIN) httpserver
	mv $(GGI_BIN) wwwroot

$(GGI_BIN):$(CGI_CC)
	g++ -o $@ $^

httpserver:main.cc
	g++ -o $@ $^ -lpthread

.PHONY:clean

clean:
	rm httpserver wwwroot/cgi.exe